﻿using Pattern20中介者模式.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pattern20中介者模式.Models
{
    internal class APlayer : PlayerBase
    {
        public APlayer(string name, int money) : base(name, money)
        {
        }

        #region
        public override void Lose(PlayerBase a, PlayerBase b, int money)
        {
            throw new NotImplementedException();
        }

        public override void Win(PlayerBase a, PlayerBase b, int money)
        {
            throw new NotImplementedException();
        }
        #endregion

        public override void Lose(MediatorBase mediator, int money)
        {
            mediator.ALose(money);
        }

        

        public override void Win(MediatorBase mediator, int money)
        {
            mediator.AWin(money);
        }
    }
}
